#!/bin/bash

# https://stackoverflow.com/questions/4316730/hiding-user-input-on-terminal-in-linux-script
stty_orig=$(stty -g)
stty -echo

echo "输入阿里 access_key";
read access_key;

echo "输入阿里 secret_key";
read secret_key;

stty $stty_orig

echo $access_key
echo $secret_key

vault write alicloud/config access_key=$access_key secret_key=$secret_key